//引入vue
import Vue from 'vue'
//引入App
import App from './App.vue'
//引入VueRouter
import VueRouter from 'vue-router'
//引入路由器
import router from './router'
//引入alert组件
import VueSimpleAlert from 'vue-simple-alert'
import './assets/fonts/iconfonts/iconfont.css';
// 引入element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import {
    MessageBox,
    Message,
    Notification
}
from 'element-ui'
import DateFormat from "dateformat-util";
import AssistVerifyDialogVue from '@/components/AssistVerifyDialog.vue';
//使用alert
Vue.use(VueSimpleAlert)
    // 使用
Vue.use(ElementUI)

//关闭Vue的生产提示
Vue.config.productionTip = false
    //应用插件
Vue.use(VueRouter)
Vue.component('assist-verify-dialog', AssistVerifyDialogVue)
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$prompt = MessageBox.prompt;
Vue.prototype.$notify = Notification;
Vue.prototype.$message = Message;
//创建vm
new Vue({
    el: '#app',
    render: h => h(App),
    router: router,
    beforeCreate() {
        Vue.prototype.$bus = this //安装全局事件总线，$bus就是当前应用的vm
        console.log()
    },
})